for i in range(1, 5):        # i=1,2,3,4 循环
    for j in range(1, 5):
        for t in range(1, 5):
            if (i != j) and (j != t) and (i != t):
                print(i, j, t)